package com.gitee.wsl.ext.collection

fun <T : Any> Iterator<T>.nextOrNull(): T? =
    if (hasNext()) next() else null